Skip to content

feat: add XOR chain_id/chain_name parameter support#9

Merged
cyberstorm-daemon merged 2 commits intomainfrom
fix/chain-id
Sep 13, 2025
Merged

feat: add XOR chain_id/chain_name parameter support#9
cyberstorm-daemon merged 2 commits intomainfrom
fix/chain-id

Conversation

@cyberstorm-daemon
Copy link
Member

Summary

  • Add XOR parameter support for chain_name OR chain_id across get_network_config() and EAS.from_chain()
  • Replace network_name with chain_name consistently throughout codebase
  • Update CLI to support both --chain-name and --chain-id options
  • Add helper functions for chain ID/name conversion

Breaking Changes

  • get_network_config() now requires keyword arguments and accepts XOR chain_name/chain_id
  • EAS.from_chain() updated to use keyword-only arguments with XOR validation
  • CLI --network option replaced with --chain-name and --chain-id
  • All network_name parameters renamed to chain_name

Test Plan

  • All existing tests updated and passing (115 passed, 13 skipped)
  • Type checking passes with MyPy
  • Linting passes with Flake8
  • Code formatting verified with Black
  • XOR validation tested for both API methods
  • CLI functionality verified for both parameter types

@cyberstorm-daemon cyberstorm-daemon merged commit 142a1dc into main Sep 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant